<template>
  <section>
    <button v-on:click="counter++">你单击了{{counter}}次。</button>
  </section>
</template>

<script>
export default {
  name: "ButtonCounter",
  data() {
    return {
      counter: 0
    };
  }
};
</script>